import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { registerMicroApps, start } from 'qiankun'

Vue.use(ElementUI)

Vue.config.productionTip = false

const loadApps = [
  {
    name: 'vue',
    entry: '//localhost:7101',
    container: '#vue',
    activeRule: '/vue'
  }
]

registerMicroApps(loadApps)

start()

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
